package com.wt.admin.code;

import com.aizuda.easy.security.exp.IErrorCode;

public enum SysRoleCode implements IErrorCode {

    ROLE_CODE_1100(1100, "没有分配角色"),
    ROLE_CODE_1101(1101, "没有可用菜单"),
    ROLE_CODE_1102(1102, "角色名称不能为空"),
    ROLE_CODE_1103(1103, "角色没有分配菜单"),
    ;


    private Integer code;
    private String msg;

    SysRoleCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
